package com.xbongbong.sys.enums;

/**
 * 用户配置表
 * TODO 检查本处name是否需要国际化，确认是否有展示需求
 * @author: wufeng
 * @date: 2019/1/10 9:25
 */
public enum UserConfigEnum {

    /**
     * 用户配置信息
     */
    FORM_COMMON_FILTER("常用筛选项", "formFilter", 0),

    STOCK_FORM_COMMON_FILTER("库存查询常用筛选项", "stockFormFilter", 0),

    SELECT_PRODUCT_COMMON_FILTER("选择产品常用筛选项", "selectProductFilter", 0),

    SELECT_PURCHASE_COMMON_FILTER("待入库选择采购合同常用筛选项", "selectPurchaseFilter", 0),

    SELECT_CONTRACT_COMMON_FILTER("待出库选择合同常用筛选项", "selectContractFilter", 0),

    DEFAULT_SORT_FIELD("默认排序字段", "defaultSortField", 0),

    COLUMN_INVISIBLE_FIELD("不可见字段", "columnInvisibleField", 0),

    COLUMN_FIXED_FIELD("冻结字段", "columnFixedField", 0),

    COLUMN_SORT_FIELD("列表页字段排序", "columnSortField", 0),

    FORM_COMMON_FILTER_DEL("数据回收常用筛选项", "formDelFilter", 0),

    DEFAULT_SORT_FIELD_DEL("数据回收站默认排序字段", "defaultSortFieldDel", 0),

    COLUMN_INVISIBLE_FIELD_DEL("数据回收站不可见字段", "columnInvisibleFieldDel", 0),

    COLUMN_SORT_FIELD_DEL("数据回收站字段排序", "columnSortFieldDel", 0),

    COMMON_FORM( "常用表单", "commonForm", 1),

    QUICK_NEW_FORM("快捷新建", "quickNewForm", 1),

    SHOW_GUIDE_LABEL("上手攻略悬浮标签", "showGuideLabel", 1),

    APP_EXPIRE_REMIND("应用到期提醒", "appExpireRemind", 0),

    STOCK_DEFAULT_SORT_FIELD("库存查询默认排序字段", "stockDefaultSortField", 0),

    STOCK_COLUMN_SORT_FIELD("库存查询列表字段排序", "stockColumnSortField", 0),

    STOCK_COLUMN_INVISIBLE_FIELD("库存查询不可见字段", "stockColumnInvisibleField", 0),

    WARN_DEFAULT_SORT_FIELD("预警查询默认排序字段", "warnDefaultSortField", 0),

    WARN_COLUMN_SORT_FIELD("预警查询列表字段排序", "warnColumnSortField", 0),

    WARN_COLUMN_INVISIBLE_FIELD("预警查询不可见字段", "warnColumnInvisibleField", 0),

    GUARANTEE_PERIOD_DEFAULT_SORT_FIELD("保质期默认排序字段", "guaranteePeriodDefaultSortField", 0),

    GUARANTEE_PERIOD_COLUMN_SORT_FIELD("保质期列表字段排序", "guaranteePeriodColumnSortField", 0),

    GUARANTEE_PERIOD_COLUMN_INVISIBLE_FIELD("保质期不可见字段", "guaranteePeriodColumnInvisibleField", 0),

    I18N_PACK("国际化语言包标示", "i18nPack", 0),

    HOME_MANAGEMENT("首页管理", "homeManagement", 0),


    STOCK_COLUMN_FIXED_FIELD("库存查询冻结字段", "stockColumnFixedField", 0),

    WARN_COLUMN_FIXED_FIELD("预警查询冻结字段", "warnColumnFixedField", 0),

    GUARANTEE_PERIOD_COLUMN_FIXED_FIELD("保质期冻结字段", "guaranteePeriodColumnFixedField", 0),

    MOBILE_INDEX_MODE("移动端首页模式","mobileIndexMode",0),
    LANE_DEFAULT_SORT_FIELD("泳道视图默认排序", "lane_defaultSortField", 0),
    LANE_LIST_SORT_FIELD("泳道视图排序列表", "lane_listSortField", 0),
    LANE_LIST_SHOW_FIELD("泳道视图展示字段列表", "lane_listShowField", 0),
    LANE_COUNT_FIELD("泳道视图统计字段", "lane_countField", 0),
    LANE_SHOW_TITLE("泳道视图是否展示标题", "lane_showTitle", 0),

    /**
     * 0为工作模式，1为仪表盘模式，默认为0
     */
    WORK_OR_CATEGORY_MODE("工作或者仪表盘模式","workOrCategoryMode",0),

    /**
     * 手机端是否有过手机号收集标志, 1为收集过（不一定有授权），0为未收集
     */
    MOBILE_COLLECT_FLAG("手机端是否有过手机号收集标志","mobileCollectFlag",0),

    /**
     * office文件预览url  OfficePreViewUrlEnum
     */
    OFFIC_PREVIEW_URL("office文件预览url的code", "officePreviewUrlCode", 0),

    /**
     * 仅展示启用规格开关
     */
    ONLY_SHOW_ENABLE_SPECIFITION("仅展示启用规格开关","onlyShowEnableSpecifition",0),

    /**
     * 知识库显示，1显示，0不显示。
     */
    KNOWLEDGE_BASE_SHOW("知识库是否显示", "knowledgeBaseShow", 1),

    ;

    /**
     * 名称
     */
    private String name;

    /**
     * 名称对应的英文
     */
    private String alias;

    /**
     * 是否为常量，1：常量，0：非常量，会增加公司id和应用id和菜单id
     */
    private Integer constantFlag;

    UserConfigEnum(String name, String alias, Integer constantFlag){
        this.name = name;
        this.alias = alias;
        this.constantFlag = constantFlag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Integer getConstantFlag() {
        return constantFlag;
    }

    public void setConstantFlag(Integer constantFlag) {
        this.constantFlag = constantFlag;
    }
}
